package com.example.kindergarten.generator.kindergarten;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户详情表
 * @TableName kg_user_info
 */
@TableName(value ="kg_user_info")
public class KgUserInfo implements Serializable {
    /**
     * 详情id
     */
    @TableId(value = "id")
    private Integer id;

    /**
     * 用户的真实姓名
     */
    @TableField(value = "read_name")
    private String read_name;

    /**
     * 证件类型
     */
    @TableField(value = "car_type")
    private Integer car_type;

    /**
     * 0 未知 1 男  2女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 证件号
     */
    @TableField(value = "id_car")
    private String id_car;

    /**
     * 职业
     */
    @TableField(value = "occupation")
    private String occupation;

    /**
     * 1 中国  2外籍
     */
    @TableField(value = "nationality")
    private Integer nationality;

    /**
     * 民族名字
     */
    @TableField(value = "nation_name")
    private String nation_name;

    /**
     * 民族id
     */
    @TableField(value = "nation_id")
    private Integer nation_id;

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    @TableField(value = "blood_type")
    private Integer blood_type;

    /**
     * 人员类型
     */
    @TableField(value = "citizen_type")
    private Integer citizen_type;

    /**
     * 籍贯
     */
    @TableField(value = "native_place")
    private String native_place;

    /**
     * 身体状况
     */
    @TableField(value = "health")
    private Integer health;

    /**
     * 工作单位
     */
    @TableField(value = "work_unit")
    private String work_unit;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 创建时间
     */
    @TableField(value = "created_at")
    private Date created_at;

    /**
     * 更新时间
     */
    @TableField(value = "updated_at")
    private Date updated_at;

    /**
     * 删除时间
     */
    @TableField(value = "deleted_at")
    private Date deleted_at;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 详情id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 详情id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户的真实姓名
     */
    public String getRead_name() {
        return read_name;
    }

    /**
     * 用户的真实姓名
     */
    public void setRead_name(String read_name) {
        this.read_name = read_name;
    }

    /**
     * 证件类型
     */
    public Integer getCar_type() {
        return car_type;
    }

    /**
     * 证件类型
     */
    public void setCar_type(Integer car_type) {
        this.car_type = car_type;
    }

    /**
     * 0 未知 1 男  2女
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 0 未知 1 男  2女
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 证件号
     */
    public String getId_car() {
        return id_car;
    }

    /**
     * 证件号
     */
    public void setId_car(String id_car) {
        this.id_car = id_car;
    }

    /**
     * 职业
     */
    public String getOccupation() {
        return occupation;
    }

    /**
     * 职业
     */
    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    /**
     * 1 中国  2外籍
     */
    public Integer getNationality() {
        return nationality;
    }

    /**
     * 1 中国  2外籍
     */
    public void setNationality(Integer nationality) {
        this.nationality = nationality;
    }

    /**
     * 民族名字
     */
    public String getNation_name() {
        return nation_name;
    }

    /**
     * 民族名字
     */
    public void setNation_name(String nation_name) {
        this.nation_name = nation_name;
    }

    /**
     * 民族id
     */
    public Integer getNation_id() {
        return nation_id;
    }

    /**
     * 民族id
     */
    public void setNation_id(Integer nation_id) {
        this.nation_id = nation_id;
    }

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    public Integer getBlood_type() {
        return blood_type;
    }

    /**
     * 血型 0 未知 1.A 2.B 3.AB 4.O 5.RH阳性  6.RH阴性 7HLA血型 8 未定 9其他
     */
    public void setBlood_type(Integer blood_type) {
        this.blood_type = blood_type;
    }

    /**
     * 人员类型
     */
    public Integer getCitizen_type() {
        return citizen_type;
    }

    /**
     * 人员类型
     */
    public void setCitizen_type(Integer citizen_type) {
        this.citizen_type = citizen_type;
    }

    /**
     * 籍贯
     */
    public String getNative_place() {
        return native_place;
    }

    /**
     * 籍贯
     */
    public void setNative_place(String native_place) {
        this.native_place = native_place;
    }

    /**
     * 身体状况
     */
    public Integer getHealth() {
        return health;
    }

    /**
     * 身体状况
     */
    public void setHealth(Integer health) {
        this.health = health;
    }

    /**
     * 工作单位
     */
    public String getWork_unit() {
        return work_unit;
    }

    /**
     * 工作单位
     */
    public void setWork_unit(String work_unit) {
        this.work_unit = work_unit;
    }

    /**
     * 经度
     */
    public BigDecimal getLongitude() {
        return longitude;
    }

    /**
     * 经度
     */
    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    /**
     * 纬度
     */
    public BigDecimal getLatitude() {
        return latitude;
    }

    /**
     * 纬度
     */
    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    /**
     * 创建时间
     */
    public Date getCreated_at() {
        return created_at;
    }

    /**
     * 创建时间
     */
    public void setCreated_at(Date created_at) {
        this.created_at = created_at;
    }

    /**
     * 更新时间
     */
    public Date getUpdated_at() {
        return updated_at;
    }

    /**
     * 更新时间
     */
    public void setUpdated_at(Date updated_at) {
        this.updated_at = updated_at;
    }

    /**
     * 删除时间
     */
    public Date getDeleted_at() {
        return deleted_at;
    }

    /**
     * 删除时间
     */
    public void setDeleted_at(Date deleted_at) {
        this.deleted_at = deleted_at;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        KgUserInfo other = (KgUserInfo) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRead_name() == null ? other.getRead_name() == null : this.getRead_name().equals(other.getRead_name()))
            && (this.getCar_type() == null ? other.getCar_type() == null : this.getCar_type().equals(other.getCar_type()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getId_car() == null ? other.getId_car() == null : this.getId_car().equals(other.getId_car()))
            && (this.getOccupation() == null ? other.getOccupation() == null : this.getOccupation().equals(other.getOccupation()))
            && (this.getNationality() == null ? other.getNationality() == null : this.getNationality().equals(other.getNationality()))
            && (this.getNation_name() == null ? other.getNation_name() == null : this.getNation_name().equals(other.getNation_name()))
            && (this.getNation_id() == null ? other.getNation_id() == null : this.getNation_id().equals(other.getNation_id()))
            && (this.getBlood_type() == null ? other.getBlood_type() == null : this.getBlood_type().equals(other.getBlood_type()))
            && (this.getCitizen_type() == null ? other.getCitizen_type() == null : this.getCitizen_type().equals(other.getCitizen_type()))
            && (this.getNative_place() == null ? other.getNative_place() == null : this.getNative_place().equals(other.getNative_place()))
            && (this.getHealth() == null ? other.getHealth() == null : this.getHealth().equals(other.getHealth()))
            && (this.getWork_unit() == null ? other.getWork_unit() == null : this.getWork_unit().equals(other.getWork_unit()))
            && (this.getLongitude() == null ? other.getLongitude() == null : this.getLongitude().equals(other.getLongitude()))
            && (this.getLatitude() == null ? other.getLatitude() == null : this.getLatitude().equals(other.getLatitude()))
            && (this.getCreated_at() == null ? other.getCreated_at() == null : this.getCreated_at().equals(other.getCreated_at()))
            && (this.getUpdated_at() == null ? other.getUpdated_at() == null : this.getUpdated_at().equals(other.getUpdated_at()))
            && (this.getDeleted_at() == null ? other.getDeleted_at() == null : this.getDeleted_at().equals(other.getDeleted_at()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRead_name() == null) ? 0 : getRead_name().hashCode());
        result = prime * result + ((getCar_type() == null) ? 0 : getCar_type().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getId_car() == null) ? 0 : getId_car().hashCode());
        result = prime * result + ((getOccupation() == null) ? 0 : getOccupation().hashCode());
        result = prime * result + ((getNationality() == null) ? 0 : getNationality().hashCode());
        result = prime * result + ((getNation_name() == null) ? 0 : getNation_name().hashCode());
        result = prime * result + ((getNation_id() == null) ? 0 : getNation_id().hashCode());
        result = prime * result + ((getBlood_type() == null) ? 0 : getBlood_type().hashCode());
        result = prime * result + ((getCitizen_type() == null) ? 0 : getCitizen_type().hashCode());
        result = prime * result + ((getNative_place() == null) ? 0 : getNative_place().hashCode());
        result = prime * result + ((getHealth() == null) ? 0 : getHealth().hashCode());
        result = prime * result + ((getWork_unit() == null) ? 0 : getWork_unit().hashCode());
        result = prime * result + ((getLongitude() == null) ? 0 : getLongitude().hashCode());
        result = prime * result + ((getLatitude() == null) ? 0 : getLatitude().hashCode());
        result = prime * result + ((getCreated_at() == null) ? 0 : getCreated_at().hashCode());
        result = prime * result + ((getUpdated_at() == null) ? 0 : getUpdated_at().hashCode());
        result = prime * result + ((getDeleted_at() == null) ? 0 : getDeleted_at().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", read_name=").append(read_name);
        sb.append(", car_type=").append(car_type);
        sb.append(", sex=").append(sex);
        sb.append(", id_car=").append(id_car);
        sb.append(", occupation=").append(occupation);
        sb.append(", nationality=").append(nationality);
        sb.append(", nation_name=").append(nation_name);
        sb.append(", nation_id=").append(nation_id);
        sb.append(", blood_type=").append(blood_type);
        sb.append(", citizen_type=").append(citizen_type);
        sb.append(", native_place=").append(native_place);
        sb.append(", health=").append(health);
        sb.append(", work_unit=").append(work_unit);
        sb.append(", longitude=").append(longitude);
        sb.append(", latitude=").append(latitude);
        sb.append(", created_at=").append(created_at);
        sb.append(", updated_at=").append(updated_at);
        sb.append(", deleted_at=").append(deleted_at);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}